import React from "react";
import View from "../base/View";
import defaultData from "./data";
import {WeaInput} from "ecCom";

export default class TelephoneView extends View {
  renderContent(data, value) {
    return (
      <div className='wea-edc-input-conatiner wea-input-normal'>
        <i className='icon-edc-f-telephone wea-edc-input-icon' />
        <WeaInput value={value} onBlur={this.handleValueChange} regExp={/^[0-9|-]*$/}/>
      </div>
    );
  }
}

TelephoneView.defaultProps = {
  data: defaultData,
  value: ''
};